$(function () {
    //输入框校验
    $("input[mt-ft]").on("keyup afterpaste", function () {
        console.log(this.value);
        console.log(getregular($(this).attr("mt-ft")));
        this.value = this.value.replace(getregular($(this).attr("mt-ft")), '');
        console.log(this.value);
    });
})

/**
 * 根据属性获取正则
 * @param type
 * @returns {string}
 */
function getregular(type) {
    switch (type) {
        case "digits":
            return meeting.regular.digits;
    }
}